package com.wanmait.wisdom.entity;

import java.io.Serializable;
import java.util.Date;

import com.baomidou.mybatisplus.annotation.TableField;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import lombok.experimental.Accessors;
import org.springframework.format.annotation.DateTimeFormat;

/**
* Created by Mybatis Generator 2024/04/02
*/
@Data
@Accessors(chain = true)
public class Building implements Serializable {
    private Integer id;

    /**
	* 楼名
	*/
    private String buildingName;

    /**
	* 几号楼
	*/
    private Integer buildingNumber;

    /**
	* 面积
	*/
    private Double buildingArea;

    /**
	* 位置
	*/
    private String buildingLocation;

    /**
	* 建成年份
	*/
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    private Date buildingYear;

    /**
	* 楼层数
	*/
    private Integer floorsNumber;

    /**
	* 住户数量
	*/
    private Integer dwllingsNumber;

    /**
	* 楼长id
	*/
    private Integer buildingManageId;

    @TableField(exist = false)
    private Resident resident;

    private static final long serialVersionUID = 1L;
}